﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>测试JS</title>
    <script src="jquery.min.js" type="text/javascript"></script>


</head>
<body>
    <script type="text/javascript">
        var a = 0;
        console.log("star:" + a);
        for (var i = 0; i < 10; i++) {
            var a = 1 + 1;
            console.log("for:" + a);

        }
        console.log("g:" + a);
        if (true) {
            var a = "ttt";
            console.log("if:" + a);
        }
        console.log("end:" + a);
        var arr = new Array();
        arr.push(1);
        arr.push(2);
        console.log(Object.prototype.toString.apply(arr) === '[object Array]');
        console.log(Object.prototype.toString.apply("") === '[object Array]');
        console.log("arry:" + arr.length);
    </script>
</body>
</html>
